package net.bithappens.hnqe.query;

import java.net.URI;

import net.bithappens.hnqe.IllegalParamException;
import net.bithappens.hnqe.graph.EntryValue;

public abstract class QueryElement {
	
	private String id;
	
	private URI uri;

	
	public QueryElement(String id, URI uri) throws InvalidIdException {
		if(id == null || id.isEmpty()){
			throw new InvalidIdException("The Id must not be null or empty");
		}
		this.id = id;
		this.uri = uri;
	}

	
	
	public URI getUri() {
		return uri;
	}

	public String getId() {
		return id;
	}
	
	public AtomAttribute getUriAttribute(){
		return new AtomAttribute(this, "@uri");
	}
}
